package com.cloudbroker.bcs.platform.ltb.bizapi.constants.type;

public enum ViewpointTagType {

	GAINED(1, "看涨"),

	DOWN(2, "看跌"),
	
	SEE(3, "观望"),

	;

	private final int val;

	private final String description;

	private String toString;

	private ViewpointTagType(int val, String description) {
		this.val = val;
		this.description = description;
	}
	
	public static void main(String[] args) {
		System.out.println(ViewpointTagType.valueOf("看涨"));
	}

	public int getVal() {
		return val;
	}

	public String getDescription() {
		return description;
	}

	@Override
	public String toString() {
		if (null == toString) {
			toString = new StringBuilder().append("StaffPwdKind[").append(val).append(':').append(description)
					.append(']').toString();
		}
		return toString;
	}

}
